class Student(object,):
    count = 0

    def __init__(self, name):
        self.name = name
        Student.count += 1  # 每创建一个实例count属性+1，统计学生总人数


libin = Student('李宾')
zhangsan = Student('张三')

print(Student.count)